﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CPPEI.Coolzon.UI.Views.Windows
{
    /// <summary>
    /// Interaction logic for CreateDomainWindow.xaml
    /// </summary>
    public partial class CreateDomainWindow : Window
    {
        public string ControlDomainCaption { get; private set; }

        public CreateDomainWindow()
        {
            InitializeComponent();
        }

        private void _ctlBtnOK_Click(object sender, RoutedEventArgs e)
        {
            ControlDomainCaption = _ctlEditCaption.Text;
            if (string.IsNullOrEmpty(ControlDomainCaption))
            {
                return;
            }
            this.DialogResult = true;
        }

        private void _ctlBtnCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}
